﻿using Craftsman.xCoronavirus.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Craftsman.xCoronavirus.WebApi.Dto
{
    public class ModifyRequestDTO
    {
        public ModifyRequestDTO() 
        {
            Contacts = new List<ModifyRequestContactDTO>();
            MaterialDemands = new List<ModifyRequestMaterialDemandDTO>();
        }

        public ModifyRequest ModifyRequest { get; set; }
        public Hospital HospitalInfo { get; set; }

        public List<ModifyRequestContactDTO> Contacts { get; set; }
        public List<ModifyRequestMaterialDemandDTO> MaterialDemands { get; set; }

    }

    public class ModifyRequestContactDTO
    {
        public Contact Old { get; set; }

        public ModifyRequestContact New { get; set; }
    }

    public class ModifyRequestMaterialDemandDTO
    {
        public MaterialDemand Old { get; set; }
        public ModifyRequestMaterialDemand New { get; set; }
    }

}
